package com.cinema.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("bill")//订单
public class Bill {
    @TableId(value = "bill_id",type = IdType.AUTO)
    private Long billId;
    private Boolean payState;
    private Boolean cancelState;
    private Long userId;
    private Long sessionId;
    private String seats;
    private Date createTime;
    private Date deadline;
    private Date cancelTime;
    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private Session session;

}
